#Include <ScreenCapture.au3>
#Include <File.au3>
#Include <Function For PageViewer.au3>
#Include <GuiListView.au3>
#include <Date.au3>

If $bPageViewType <> 1 Then Exit 
$sLogFileName1 = 'PageViewer3'
Common_WriteCurrentFunctionNameToTempTXT($sLogFileName1)

PageViewer3_2_301()
PageViewer3_2_304()
PageViewer3_2_322()
PageViewer3_2_323()
PageViewer3_2_324()
PageViewer3_2_325()
PageViewer3_2_326To3_2_342()
PageViewer3_2_345To3_2_361()
PageViewer3_2_364To3_2_379()
PageViewer3_2_381()
PageViewer3_2_382()
PageViewer3_2_383()
PageViewer3_2_384()
PageViewer3_2_386()
PageViewer3_2_387()
PageViewer3_2_390()
PageViewer3_2_392()
PageViewer3_2_411()
PageViewer3_2_418()
PageViewer4_1_2()
PageViewer4_1_3()
PageViewer4_1_4()
PageViewer4_1_5()
PageViewer4_1_6()
PageViewer4_1_7()
PageViewer4_1_8()
PageViewer4_1_9()
PageViewer4_1_10()
PageViewer4_1_11() 
PageViewer4_1_12()
PageViewer4_1_13()
PageViewer4_1_15()
PageViewer4_1_16()
PageViewer4_1_19()
PageViewer4_1_20()
PageViewer4_1_21()
PageViewer4_1_22()
PageViewer4_1_23()
PageViewer4_1_24()
PageViewer4_1_25()
PageViewer4_1_26()
PageViewer4_1_27()
PageViewer4_1_28()
PageViewer4_1_29()
PageViewer4_1_30()
PageViewer4_1_31()
PageViewer4_1_32()
PageViewer4_1_33()
PageViewer4_1_34()
PageViewer4_1_35()
PageViewer4_1_36()
PageViewer4_1_37()
PageViewer4_1_38()
PageViewer4_1_39()
PageViewer4_1_48To54()






PageViewer4_1_55To61()






PageViewer4_1_64()
PageViewer4_1_65()
PageViewer4_1_66() 
PageViewer4_1_67()
PageViewer4_1_68()
PageViewer4_1_69()
PageViewer4_1_70()
PageViewer4_1_72()
PageViewer4_1_73()
PageViewer4_1_74()
PageViewer4_1_76()
PageViewer4_1_78()
PageViewer4_1_81()
PageViewer4_1_84()
PageViewer4_1_85()
PageViewer4_1_86()
PageViewer4_1_87()
PageViewer4_1_88()
PageViewer4_1_89()
PageViewer4_1_90()
PageViewer4_1_91()
PageViewer4_1_95()
PageViewer4_1_96()
PageViewer4_1_97()
PageViewer4_1_98()
PageViewer4_1_99()
PageViewer4_1_101()
PageViewer4_1_102()
PageViewer4_1_103()
PageViewer4_1_104()
PageViewer4_1_105()
PageViewer4_1_106()
PageViewer4_1_107()
PageViewer4_1_108()
PageViewer4_1_111()
PageViewer4_1_112()
PageViewer4_2_8()
PageViewer4_2_16()
PageViewer4_2_20()
PageViewer4_2_22()
PageViewer4_2_24()
PageViewer4_2_30()
PageViewer4_2_36()
PageViewer4_2_37()	
PageViewer4_2_38()
PageViewer4_2_39()
PageViewer4_2_40()
PageViewer4_2_41()
PageViewer4_2_42()
PageViewer4_2_43()
PageViewer4_2_44()
PageViewer4_2_45()
PageViewer4_2_46()
PageViewer4_2_47()
PageViewer4_2_48()
PageViewer4_2_49()
PageViewer4_2_50()
PageViewer4_2_51()
PageViewer4_2_52()
PageViewer4_2_53()
PageViewer4_2_54()
PageViewer4_2_58()
PageViewer4_2_59()
PageViewer4_2_60()
PageViewer4_2_61()
PageViewer4_2_62()
PageViewer4_2_63()
PageViewer4_2_64()
PageViewer4_2_65()
PageViewer4_2_66()
PageViewer4_2_67()
PageViewer4_2_68()
PageViewer4_2_69()
PageViewer4_2_70()
PageViewer4_2_71()
PageViewer4_2_72()
PageViewer4_2_73()
PageViewer4_2_74()
PageViewer4_2_75()
PageViewer4_2_76()
PageViewer4_2_77()
PageViewer4_2_78()
PageViewer4_2_79()
PageViewer4_2_80To89()
PageViewer4_2_90()
PageViewer4_2_91()
PageViewer4_2_92()
PageViewer4_2_97()
PageViewer4_2_98()
PageViewer4_2_99()
PageViewer4_2_100()
PageViewer4_2_101()
PageViewer4_2_102()
PageViewer4_2_103()
PageViewer4_2_104()
PageViewer4_2_105()
PageViewer4_2_106To120()
PageViewer4_2_125()
PageViewer4_2_126()
PageViewer4_2_127()
PageViewer4_2_128()
PageViewer4_2_129()
PageViewer4_2_130()
PageViewer4_2_131()
PageViewer4_2_132()
PageViewer4_2_133()
PageViewer4_2_134()
PageViewer4_2_136()
PageViewer4_2_137()
PageViewer4_2_138()
PageViewer4_2_139()

Func PageViewer3_2_301()
	Local $TestCaseID = '3.2.301' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Existed name' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message.(The iamge is pageviewer alert window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'BMP.bmp') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sConfirmSaveAsWnd, '', $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_304()
	Local $TestCaseID = '3.2.304' 
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select Save as option from File Menu'
	Local $sStep3 = '3:'   &  'Change the File Name that contain the Double byte' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not SelectSaveAsOptionFromFileMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & '3.2.304' & $sDoubleByteStrForTest) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Common_CompareFile($sPerformResultPath & '3.2.304' & $sDoubleByteStrForTest & '.bmp', $sCorrectResultPath & '3.2.304' & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_322()
	Local $TestCaseID = '3.2.322' 
	Local $sStep1 = '1:'   &  'Open the Save as window with context menu on work area.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'save as any format.'
	Local $sStep3 = '3:'   &  'Click "setting" button,select "save image with annotations,the annotaion can be seen in all iamge apllication" option,Click "OK" button,Click "save" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()	
	SelectSelectImageOptionInPageViewer()	
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickSeetingBtnInSaveAsWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectSttingsInSaveAsSettingWnd($TestCaseID, $sLogFileName1, 'SaveAll')	Then Return False	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 5) Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_323()
	Local $TestCaseID = '3.2.323' 
	Local $sStep1 = '1:'   &  'Open the Save as window with context menu on work area.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'save as any format.'
	Local $sStep3 = '3:'   &  'Click "setting" button,select "save image with annotations,the annotaion only can be seen in presto! pagemanager" ' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()	
	SelectSelectImageOptionInPageViewer()	
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickSeetingBtnInSaveAsWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectSttingsInSaveAsSettingWnd($TestCaseID, $sLogFileName1, 'OnlyInPM')	Then Return False	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_324()
	Local $TestCaseID = '3.2.324' 
	Local $sStep1 = '1:'   &  'Open the Save as window with context menu on work area.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'save as any format.'
	Local $sStep3 = '3:'   &  'Click "setting" button,select "save image without annotations" option,Click "OK" button,Click "save" button' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextAnnotationInPageViewer()	
	SelectSelectImageOptionInPageViewer()	
	ClickMouseButtonInPageviwerView('right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickSeetingBtnInSaveAsWnd($TestCaseID, $sLogFileName1) Then Return False	
	If Not SelectSttingsInSaveAsSettingWnd($TestCaseID, $sLogFileName1, 'DontSave')	Then Return False	
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_325()
	Local $TestCaseID = '3.2.325' 
	Local $sStep1 = '1:'   &  'Open the Save as window with context menu on work area.("BMP.bmp")'
	Local $sStep2 = '2:'   &  'save as any format.'
	Local $sStep3 = '3:'   &  'Open the Save as window with context menu on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.5)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	If Not SelectSaveAsOptionInContextMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.bmp', $sCorrectResultPath & $TestCaseID & '.bmp') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_326To3_2_342()
	For $i = 0 To 16
		Local $TestCaseID = '3.2.' & (326 + $i) 
		Local $sStep1 = '1:'   &  'Select Color, 300dpi, A4 JPEG file, click "Save as" button'
		Local $sStep2 = '2:'   &  ''
		Local $sStep3 = '3:'   &  '' 
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  'It should save as successful and the content should right.' & 'Format: ' & $avImageSaveAsFormat[$i]
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'Color_300_A4.jpg', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(0.5)
		ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		If Not ClickSaveAsButtonInPageViewer($TestCaseID, $sLogFileName1) Then Return False	
		Common_SetSaveAsFormat($avImageSaveAsFormat[$i])	
		Local $iSaveAsTime = 2, $sFormat = Common_GetSaveAsFormat($avImageSaveAsFormat[$i])
		If StringInStr($avImageSaveAsFormat[$i], 'txt') or StringInStr($avImageSaveAsFormat[$i], 'rtf') or StringInStr($avImageSaveAsFormat[$i], 'htm') Then
			$iSaveAsTime = 30
		EndIf
		If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
		If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', $iSaveAsTime) Then Return False
		If Common_CompareFile($sPerformResultPath & $TestCaseID & $sFormat, $sCorrectResultPath & $TestCaseID & $sFormat) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer3_2_345To3_2_361()
	For $i = 0 To 16
		Local $TestCaseID = '3.2.' & (345 + $i) 
		Local $sStep1 = '1:'   &  'Select Gray, 300dpi, Letter TIFF file, click "Save as" button'
		Local $sStep2 = '2:'   &  ''
		Local $sStep3 = '3:'   &  '' 
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  'It should save as successful and the content should right.' & 'Format: ' & $avImageSaveAsFormat[$i]
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'Gray_300_Letter.tif', $sFunctionFolderPath, 1)
		Common_SleepInSeconds(2)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(1)
		ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
		Common_SleepInSeconds(3)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		If Not ClickSaveAsButtonInPageViewer($TestCaseID, $sLogFileName1) Then Return False	
		Common_SetSaveAsFormat($avImageSaveAsFormat[$i])	
		Local $iSaveAsTime = 2, $sFormat = Common_GetSaveAsFormat($avImageSaveAsFormat[$i])
		If StringInStr($avImageSaveAsFormat[$i], 'txt') or StringInStr($avImageSaveAsFormat[$i], 'rtf') or StringInStr($avImageSaveAsFormat[$i], 'htm') Then
			$iSaveAsTime = 30
		EndIf
		If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
		If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', $iSaveAsTime) Then Return False
		If Common_CompareFile($sPerformResultPath & $TestCaseID & $sFormat, $sCorrectResultPath & $TestCaseID & $sFormat) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer3_2_364To3_2_379()
	For $i = 0 To 15
		Local $TestCaseID = '3.2.' & (364 + $i) 
		Local $sStep1 = '1:'   &  'Select B/W, 600dpi, A4 BMP file, click "Save as" button'
		Local $sStep2 = '2:'   &  ''
		Local $sStep3 = '3:'   &  '' 
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  'It should save as successful and the content should right.' & 'Format: ' & $avImageSaveAsFormat[$i]
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'BW_600_A4.bmp', $sFunctionFolderPath, 1)
		Common_SleepInSeconds(2)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
		Common_SleepInSeconds(1)
		ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
		Common_SleepInSeconds(3)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		If Not ClickSaveAsButtonInPageViewer($TestCaseID, $sLogFileName1) Then Return False	
		Common_SetSaveAsFormat($avImageSaveAsFormat[$i])	
		Local $iSaveAsTime = 2, $sFormat = Common_GetSaveAsFormat($avImageSaveAsFormat[$i])
		If StringInStr($avImageSaveAsFormat[$i], 'txt') or StringInStr($avImageSaveAsFormat[$i], 'rtf') or StringInStr($avImageSaveAsFormat[$i], 'htm') Then
			$iSaveAsTime = 30
		EndIf
		If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
		If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', $iSaveAsTime) Then Return False
		If Common_CompareFile($sPerformResultPath & $TestCaseID & $sFormat, $sCorrectResultPath & $TestCaseID & $sFormat) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer3_2_381()
	Local $TestCaseID = '3.2.381'
	Local $sStep1 = '1:'   &  'Select B/W, 600dpi, A4 BMP file, click "Save as" button'
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should save as successful and the content should right.' & 'Format: ' & "HTML(*.HTM)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BW_600_A4.bmp', $sFunctionFolderPath, 1)
	Common_SleepInSeconds(2)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(1)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	Common_SleepInSeconds(3)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickSaveAsButtonInPageViewer($TestCaseID, $sLogFileName1) Then Return False	
	Common_SetSaveAsFormat("HTML(*.HTM)")	
	Local $iSaveAsTime = 2, $sFormat = Common_GetSaveAsFormat("HTML(*.HTM)")
	$iSaveAsTime = 30
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', $iSaveAsTime) Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & $sFormat, $sCorrectResultPath & $TestCaseID & $sFormat) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_382()
	Local $TestCaseID = '3.2.382'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save all files as" dialog will pop up. (The image is "save all files as" window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sCommonWndClass, $sSaveAsWndText, 1136)
	Common_SleepInSeconds(0.3)
	Send('{ESC}')
	Common_SleepInSeconds(0.3)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sCommonWndClass, $sSaveAsWndText, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_383()
	Local $TestCaseID = '3.2.383'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'Click Cancel' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The Save as window should be cancel with nothing changed.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'Cancel') Then Return False
	If WinGetHandle($sCommonWndClass, $sSaveAsWndText) Then
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	Else
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_384()
	Local $TestCaseID = '3.2.384'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'Change the File Name empty' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message. (The image is pageviewer aliert message'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_386()
	Local $TestCaseID = '3.2.386'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Illegal character(\/:*?"<>|)' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message. (The image is pageviewer aliert message'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '\/:*?"<>|') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_387()
	Local $TestCaseID = '3.2.387'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'Change the File Name that Just Space' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message. (The image is pageviewer aliert message'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, '  ') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_390()
	Local $TestCaseID = '3.2.390'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'Change the File Name that More than the longest' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message. (The image is pageviewer aliert message'
	Local $slongestName = '1111111111111111111110000001111111111111111111111100000011111111111111111111110000001111111111111110000001111ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss1111111111111111111111111111.bmp'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $slongestName) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_392()
	Local $TestCaseID = '3.2.392'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'Change the File Name that contain Existed name' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It should pop the alert message. (The image is pageviewer aliert message'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sSampleFolderPath & 'PDF-Single page.pdf') Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sConfirmSaveAsWnd, '', $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_411()
	Local $TestCaseID = '3.2.411'
	Local $sStep1 = '1:'   &  'Launch PM and select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select merge PDF from tools Menu.on "save all files as"dialog.'
	Local $sStep3 = '3:'   &  'click property button on on "save as type "option.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'save pdf options dialog will pops up. (The image is Preferences window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PCD.pcd', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenMergePDFDlgFromToolsMenu($TestCaseID, $sLogFileName1) Then Return False
	ControlClick($sCommonWndClass, $sSaveAsWndText, 1021)   ; Property... button
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, 'Preferences', '', $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer3_2_418()
	Local $TestCaseID = '3.2.418'
	Local $sStep1 = '1:'   &  'Install bundle machine driver then launch PM.select a picture In page view("BMP.bmp")'
	Local $sStep2 = '2:'   &  'Select the supported format file.(Normal single file.)'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '1.The file will print by select printer. 2.The printed result is correct.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'BMP.bmp', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickPrintBtnInPageviewer($TestCaseID, $sLogFileName1) Then Return False
	If Not SetSaveAsFileName($TestCaseID, $sLogFileName1, $sPerformResultPath & $TestCaseID) Then Return False
	If Not CLickOkOrCancelBtnInSaveAsWnd_EX($TestCaseID, $sLogFileName1, 'OK', 2) Then Return False
	If Common_CompareFile($sPerformResultPath & $TestCaseID & '.tif', $sCorrectResultPath & $TestCaseID & '.tif') Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_2()
	Local $TestCaseID = '4.1.2'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Single page PDF'
	Local $sStep3 = '3:'   &  'click open' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is contain two "PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_3()
	Local $TestCaseID = '4.1.3'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'multiple page PDF'
	Local $sStep3 = '3:'   &  'click open' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is contain two "PDF-multiple page.PDF")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-multiple page.PDF', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_4()
	Local $TestCaseID = '4.1.4'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'One more than PDF files'
	Local $sStep3 = '3:'   &  'click open' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is contain three PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page - Copy.pdf', $TestCaseID, $sLogFileName1) Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_5()
	Local $TestCaseID = '4.1.5'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'One more than PDF files'
	Local $sStep3 = '3:'   &  'click open' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is PDF-Protect-PDF.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Protect-PDF.pdf', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	If Not SendPasswordForProtectPDF($TestCaseID, $sLogFileName1, '123', 'OK') Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_6()
	Local $TestCaseID = '4.1.6'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Oselect a file on file list.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_7()
	Local $TestCaseID = '4.1.7'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Oselect a file on file list.'
	Local $sStep3 = '3:'   &  'select other file on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'view file list will display correctly.(The image is PDF-multiple page.PDF")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-multiple page.PDF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_8()
	Local $TestCaseID = '4.1.8'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Oselect a file on file list.'
	Local $sStep3 = '3:'   &  'sclick right-key on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as","Print","delete","properties" will be display.(The image is pop up menu"save","save as","close","properties")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(1.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_9()
	Local $TestCaseID = '4.1.9'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Oselect a file on file list.'
	Local $sStep3 = '3:'   &  'click selected file on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'click selected file on file list.(The thumbnial of file is hide)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'left')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_10()
	Local $TestCaseID = '4.1.10'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Oselect a file on file list.'
	Local $sStep3 = '3:'   &  'click down button on keyboard.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected.(The image is "PDF-multiple page.PDF")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-multiple page.PDF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Send('{DOWN}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_11()
	Local $TestCaseID = '4.1.11'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'Oselect a file on file list.'
	Local $sStep3 = '3:'   &  'click up button on keyboard.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected.(The image is "PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-multiple page.PDF', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Send('{UP}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_12()
	Local $TestCaseID = '4.1.12'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a single PDF  file on thumbnail list'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly. The thumbnail list will be selected.(The image is "PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_13()
	Local $TestCaseID = '4.1.13'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a single PDF  file on thumbnail list'
	Local $sStep3 = '3:'   &  'sclick right-key on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as","Print","delete","properties" will be display.(The image is pop up menu"save","save as","close","properties")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(1.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_15()
	Local $TestCaseID = '4.1.15'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a single PDF  file on thumbnail list'
	Local $sStep3 = '3:'   &  'check tool  bar for page editbox.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.(The page editbox in tool bar is dim)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	$hViewinPageView = ControlGetHandle($hPageViewer, '', $sPageViewerToolBar)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hViewinPageView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_16()
	Local $TestCaseID = '4.1.16'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a single PDF  file on thumbnail list'
	Local $sStep3 = '3:'   &  'check arrow for page editbox.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'all item will be dim.(The down arrow For page editbox in tool bar is dim)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	$hViewinPageView = ControlGetHandle($hPageViewer, '', $sPageViewerToolBar)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hViewinPageView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_19()
	Local $TestCaseID = '4.1.19'
	Local $sStep1 = '1:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep2 = '2:'   &  'select a single PDF  file on thumbnail list'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly. The thumbnail list will be selected.(The image is "PDF-multiple page.PDF")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_20()
	Local $TestCaseID = '4.1.20'
	Local $sStep1 = '1:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep2 = '2:'   &  'select a single PDF  file on thumbnail list'
	Local $sStep3 = '3:'   &  'Drag and drop to move the order of page.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly. The thumbnail list will be selected.(The doc view should in first)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	MouseClickDrag('left', 161, 178, 161, 548)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_21()
	Local $TestCaseID = '4.1.21'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'click right-key on file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"save","save as","Print","delete","properties" will be display.(The image is pop up menu"save","save as","close","properties")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	_GUICtrlListView_ClickItem($hThumbnailView, 0, "left") 
	Common_SleepInSeconds(0.3)
	ControlClick($hPMHandle, "", $sPageViewButtonInToolbarCtrInfo)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Common_SleepInSeconds(1.5)
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_22()
	Local $TestCaseID = '4.1.22'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'Click Next Page on view menu.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show doc file)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('n')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_23()
	Local $TestCaseID = '4.1.23'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'Click Next Page on view menu.' 
	Local $sStep4 = '4:'   &  'Click Previous Page on view menu.'
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show image file)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('n')
	Common_SleepInSeconds(0.5)
	OpenViewGoToMenu()
	Send('p')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_24()
	Local $TestCaseID = '4.1.24'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'Click Last Page on view menu.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show "flower" file)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('l')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_25()
	Local $TestCaseID = '4.1.25'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'Click Last Page on view menu.' 
	Local $sStep4 = '4:'   &  'Click First Page on view menu.'
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show "bird" file)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenViewGoToMenu()
	Send('l')
	Common_SleepInSeconds(0.5)
	OpenViewGoToMenu()
	Send('f')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_26()
	Local $TestCaseID = '4.1.26'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'click next page arrow for page editbox.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show second file of PDF-multiple page_2.PDF)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickNextPageBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_27()
	Local $TestCaseID = '4.1.27'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'click Previous page arrow for page editbox.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show first file of PDF-multiple page_2.PDF)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickNextPageBtnInPageviewer()
	ClickPreviousPageBtnInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_28()
	Local $TestCaseID = '4.1.28'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'click down button on keyboard.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show second file of PDF-multiple page_2.PDF)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickFileThumbnailInPageViwer(1, 'left')
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_29()
	Local $TestCaseID = '4.1.29'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'click up button on keyboard.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the work area will be display correctly.The thumbnail list will be selected (The image show first file of PDF-multiple page_2.PDF)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickFileThumbnailInPageViwer(1, 'left')
	Send('{DOWN}')
	Common_SleepInSeconds(0.5)
	Send('{UP}')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_30()
	Local $TestCaseID = '4.1.30'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'cinput "0" on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('0')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_31()
	Local $TestCaseID = '4.1.31'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input blank on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('{BACKSPACE}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_32()
	Local $TestCaseID = '4.1.32'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input space on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('{SPACE}')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_33()
	Local $TestCaseID = '4.1.33'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input string on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('ee')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_34()
	Local $TestCaseID = '4.1.34'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input decimals on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('0.5')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_35()
	Local $TestCaseID = '4.1.35'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input special string on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('@')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_36()
	Local $TestCaseID = '4.1.36'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input more than max page on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the alert message will pops up. (The image is pageviewer alert message)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('4')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	 If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, WinGetHandle($sPageViwerAlertTitle,$sPageViwerAlertMsg), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_37()
	Local $TestCaseID = '4.1.37'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input corrent page on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the work area will be display correctly. The thumbnail list will be selected. (The image is first page of file "PDF-multiple page_2.PDF")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('1')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_38()
	Local $TestCaseID = '4.1.38'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'select a Multiple PDF file on thumbnail list'
	Local $sStep3 = '3:'   &  'input correct page on edit box on tools bar for view page.' 
	Local $sStep4 = '4:'   &  'press enter on keyboard.'
	Local $sRes   = 'Res:' &  'the work area will be display correctly. The thumbnail list will be selected. (The image is second page of file "PDF-multiple page_2.PDF")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickPageNumberEditBox()
	Send('2')
	Common_SleepInSeconds(0.5)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_39()
	Local $TestCaseID = '4.1.39'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview'
	Local $sStep2 = '2:'   &  'click open on file menu.'
	Local $sStep3 = '3:'   &  'select  Single page' 
	Local $sStep4 = '4:'   &  'click open.'
	Local $sRes   = 'Res:' &  'the work area will be display correctly.(The image is "PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-multiple page_2.PDF', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not OpenFileInPagewier($sSampleFolderPath & 'PDF-Single page.pdf', $TestCaseID, $sLogFileName1) Then Return False
	SelectFileInFileListForPageViewer(2, 'left')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_48To54()
	For $i = 1 to 7
		Local $TestCaseID = '4.1.' & 47 + $i, $sSize, $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		If $i = 1 Then
			$sSize = '1/2'
		ElseIf $i = 2 Then
			$sSize = '1/3'
		ElseIf $i = 3 Then
			$sSize = '1/4'
		ElseIf $i = 4 Then
			$sSize = '1/5'
		ElseIf $i = 5 Then
			$sSize = '1/6'
		ElseIf $i = 6 Then
			$sSize = '1/7'
		ElseIf $i = 7 Then
			$sSize = '1/8'
		EndIf	
		Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
		Local $sStep2 = '2:'   &  'Click view menu-->zoom->zoom out'
		Local $sStep3 = '3:'   &  'Select ' & $sSize
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  '1.Check "zoom out--> " ' & $sSize & ' will select 2.The image will zoom out ' & $sSize
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		ZoomOutInPageViwer($sSize)
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_1_55To61()
	For $i = 1 to 7
		Local $TestCaseID = '4.1.' & 54 + $i, $sSize, $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		If $i = 1 Then
			$sSize = 'x2'
		ElseIf $i = 2 Then
			$sSize = 'x3'
		ElseIf $i = 3 Then
			$sSize = 'x4'
		ElseIf $i = 4 Then
			$sSize = 'x5'
		ElseIf $i = 5 Then
			$sSize = 'x6'
		ElseIf $i = 6 Then
			$sSize = 'x7'
		ElseIf $i = 7 Then
			$sSize = 'x8'
		EndIf		
		Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
		Local $sStep2 = '2:'   &  'Click view menu-->zoom->zoom out'
		Local $sStep3 = '3:'   &  'Select ' & $sSize
		Local $sStep4 = '4:'   &  ''
		Local $sRes   = 'Res:' &  '1.Check "zoom out--> " ' & $sSize & ' will select 2.The image will zoom out ' & $sSize
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		ZoomInInPageViwer($sSize)
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_1_64()
	Local $TestCaseID = '4.1.64'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Cclick "-" from status  bar '
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom out'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	For $i = 0 to 18 
		ClickZoomOutBtnInPageViwerStatusBar()
	Next
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_65()
	Local $TestCaseID = '4.1.65'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click "+" from status  bar '
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom in'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	For $i = 0 to 18 
		ClickZoomInBtnInPageViwerStatusBar()
	Next
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_66()
	Local $TestCaseID = '4.1.66'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'D&D scroll bar on from status  bar  to max.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom out'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Max')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_67()
	Local $TestCaseID = '4.1.67'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'D&D scroll bar on from status  bar  to min.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will zoom in'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Min')
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_68()
	Local $TestCaseID = '4.1.68'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Click view menu-->zoom->actual size'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will actual size.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Min')
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.5)
	OpenViewZoomMenu()
	Send('a')  ;actual size
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_69()
	Local $TestCaseID = '4.1.69'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Click view menu-->zoom->fit to width.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to width.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Min')
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.5)
	OpenViewZoomMenu()
	Send('w')  ;fit to width.
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_70()
	Local $TestCaseID = '4.1.70'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Click view menu-->zoom->fit to page'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to page.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Min')
	WinActivate($hPageViewer)
	Common_SleepInSeconds(0.5)
	OpenViewZoomMenu()
	Send('p')  ;fit to page
	Common_SleepInSeconds(0.5)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_72()
	Local $TestCaseID = '4.1.72'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click fit to width  from status  bar '
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to width.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Min')
	Common_SleepInSeconds(0.5)
	ClickFitToWidthButtonInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_73()
	Local $TestCaseID = '4.1.73'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click fit to page  from status  bar '
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check the image will fit to page.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DragDropZoomBtnInPageViwerStatusBar('Min')
	Common_SleepInSeconds(0.5)
	ClickFitToPageButtonInPageviewer()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_74()
	Local $TestCaseID = '4.1.74'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click single page on status bar.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'this item will be dim.(single page button on status bar is dim)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_76()
	Local $TestCaseID = '4.1.76'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click Continuous View on status bar.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'It is enable.(Continuous page button on status bar is enable.)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_78()
	Local $TestCaseID = '4.1.78'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"doc type","file size","fit to page","fit to width","single page","Continuous View","zoom silder" will display correctly.(status bar show correct.)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerStatusBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_81()
	Local $TestCaseID = '4.1.81'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  ''
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  '"select tools"annotation","edit image",color arrangement" will display.The UI will display correctly.(status bar show correct.)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_84()
	Local $TestCaseID = '4.1.84'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin floating on  task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating style will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_85()
	Local $TestCaseID = '4.1.85'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'double click task pane on top of task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the floating style will be display.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	DoubleClickTaskPane()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_86()
	Local $TestCaseID = '4.1.86'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin hide on  task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(It should not has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	HideTaskPaneInPageviewer()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_87()
	Local $TestCaseID = '4.1.87'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click "X" on task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(It should not has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickXButtonOnTaskPaneInPageviewer()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_88()
	Local $TestCaseID = '4.1.88'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkout task pane on view menu.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(It should not has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickViewEditToolsMenu()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_89()
	Local $TestCaseID = '4.1.89'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkout task pane on view menu.'
	Local $sStep3 = '3:'   &  'checkin task pane on view menu.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will appeared.(The iamge is task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	ClickViewEditToolsMenu()
	ClickViewEditToolsMenu()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_90()
	Local $TestCaseID = '4.1.90'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin "auto hide" on  task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(It should not has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	RightClickTaskPane()
	AutoHideTaskPane()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_91()
	Local $TestCaseID = '4.1.91'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a PDF file switch to pageview(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin "auto hide" on  task pane.'
	Local $sStep3 = '3:'   &  'move mouse to task pane on left-top.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will appeared.(It iamge is task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	RightClickTaskPane()
	AutoHideTaskPane()
	MouseMove(1276, 98)
	Common_SleepInSeconds(1)	
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_95()
	Local $TestCaseID = '4.1.95'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a image file switch to pageview.checkin floating on context menu.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin docking on  task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the docking style will be display.(It iamge is task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	MouseClickFloatingTaskPane('right',1)
	DockFloatedTaslPane()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_96()
	Local $TestCaseID = '4.1.96'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a image file switch to pageview.checkin floating on context menu.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'double click task pane on top of task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'the docking style will be display.(It iamge is task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	DoubleClickFolatedTaskPane()
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_97()
	Local $TestCaseID = '4.1.97'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a image file switch to pageview.checkin floating on context menu.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin hide on  task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(It should not has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	MouseClickFloatingTaskPane('right',1)
	HideFloatingTaskpane()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_98()
	Local $TestCaseID = '4.1.98'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a image file switch to pageview.checkin floating on context menu.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'checkin hide on  task pane.'
	Local $sStep3 = '3:'   &  'checkin task pane on view menu.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will appeared.(It image is has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	MouseClickFloatingTaskPane('right',1)
	HideFloatingTaskpane()
	ShowTaskPaneInViewMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_99()
	Local $TestCaseID = '4.1.99'
	Local $sStep1 = '1:'   &  'Launch PageManager,choose a image file switch to pageview.checkin floating on context menu.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'click "X" on task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'task pane will disappeared.(It should not has task pane)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	FloatingTaskpane()
	MouseClick('left',432,101)   ;X button
	Common_SleepInSeconds(1)
	ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_101()
	Local $TestCaseID = '4.1.101'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Check title'
	Local $sRes   = 'Res:' &  'It will show the file name(It show "PDF-Single page.pdf")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	$h = ControlGetHandle($sFilePropertiesWndTitle, '', 1019)
	ControlFocus($sFilePropertiesWndTitle, '', 1032)
	Common_SleepInSeconds(0.5)	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $h, '', $TestCaseID, $sLogFileName1) Then Return False	
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_102()
	Local $TestCaseID = '4.1.102'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Check authors'
	Local $sRes   = 'Res:' &  'Allow user add or remoce authors(The authors name in screen capture should be "11111" "33333")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not AddAuthorsInFileProperties('11111', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddAuthorsInFileProperties('22222', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddAuthorsInFileProperties('33333', $TestCaseID, $sLogFileName1) Then Return False
	If Not RemoveAuthorsInFileProperties(1, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_103()
	Local $TestCaseID = '4.1.103'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Check keywords'
	Local $sRes   = 'Res:' &  'Allow user add or remoce keywords(The file keywords in screen capture should be "AAAA" "CCCC")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not AddKeywordsInFileProperties('AAAA', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddKeywordsInFileProperties('BBBB', $TestCaseID, $sLogFileName1) Then Return False
	If Not AddKeywordsInFileProperties('CCCC', $TestCaseID, $sLogFileName1) Then Return False
	If Not RemoveKeywordsInFileProperties(1, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_104()
	Local $TestCaseID = '4.1.104'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Check memo'
	Local $sRes   = 'Res:' &  'Allow user add memo(The file memo in screen capture should be "This is the Moemo")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	AddMemoInFileProperties('This is the Moemo')
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_105()
	Local $TestCaseID = '4.1.105'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Click add button'
	Local $sRes   = 'Res:' &  'Allow user add audio(The "Add "Record" "Play" "Delete" button in screen capture should be enable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not AddAudioInFileProperties($sSampleFolderPath & 'WAV.WAV',$TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_106()
	Local $TestCaseID = '4.1.106'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Click record button'
	Local $sRes   = 'Res:' &  'Allow user record audio(The "Add "Record" "Play" "Delete" button in screen capture should be enable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not RecordAudioInFileProperties($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_107()
	Local $TestCaseID = '4.1.107'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label,Click play button'
	Local $sRes   = 'Res:' &  'Allow user play audio(The screen capture should be "Play Audio" window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not AddAudioInFileProperties($sSampleFolderPath & 'WAV.WAV',$TestCaseID, $sLogFileName1) Then Return False	
	If Not PlayAuiodInFileProperties($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, 'Play Audio', '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_108()
	Local $TestCaseID = '4.1.108'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from context menu' 
	Local $sStep4 = '4:'   &  'In information label, Click delete button'
	Local $sRes   = 'Res:' &  'Allow user delete audio(The "Add "Record" is enable "Play" "Delete" button is disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False
	If Not AddAudioInFileProperties($sSampleFolderPath & 'WAV.WAV',$TestCaseID, $sLogFileName1) Then Return False	
	ControlClick($sFilePropertiesWndTitle, '', 1026)   ;Delete button
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_111()
	Local $TestCaseID = '4.1.111'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from file menu' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open(The screen capture is "File Propertes")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	OpenFilePropertiesFromFileMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_1_112()
	Local $TestCaseID = '4.1.112'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the PDF,switch to Page View'
	Local $sStep3 = '3:'   &  'Click properties option from file list.' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The properties dialog will open(The screen capture is "File Propertes")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	SelectFileInFileListForPageViewer(1, 'right')
	Send('{UP}')
	Common_SleepInSeconds(0.3)
	Send('{ENTER}')
	Common_SleepInSeconds(1)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_8()
	Local $TestCaseID = '4.2.8'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select whole PDF,click tools menu--->select left 90 degrees'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The PDF will left 90 degrees(The image is left 90 degrees)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	RotataImageImPageViwer('Left90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_16()
	Local $TestCaseID = '4.2.16'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select whole pdf,click tools menu--->select 180 degrees'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The PDF will 180 degrees(The image is 180 degrees)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	RotataImageImPageViwer('180Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_20()
	Local $TestCaseID = '4.2.20'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'SSelect whole PDF,click tool menu--->select left 90 degrees'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The PDF will left 90 degrees(The image is left 90 degrees)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	RotataImageImPageViwer('Left90Degree')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_22()
	Local $TestCaseID = '4.2.22'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'check ocr button tools bar.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'OCR button will be dim.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_24()
	Local $TestCaseID = '4.2.24'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the pdf,switch to Page View'
	Local $sStep3 = '3:'   &  'Click add audio option from Properties dialog' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'Check Initial state:1.Add2.Record3.Play(disable)4.Delete(disable)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, GetAutioMemoCtrlHandle(), '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_30()
	Local $TestCaseID = '4.2.30'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Select the pdf,switch to Page View'
	Local $sStep3 = '3:'   &  'Click add audio option from Properties dialog, Click record button' 
	Local $sStep4 = '4:'   &  'Click OK button'
	Local $sRes   = 'Res:' &  'Check when switch to thumbnail view,will appear audio icon(The screen capture file is one file thumbnail with audio icon)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickFilePropertitesInPageViwer($TestCaseID, $sLogFileName1) Then Return False	
	If Not RecordAudioInFileProperties($TestCaseID, $sLogFileName1) Then Return False	
	ControlClick($sFilePropertiesWndTitle, '', 1)   ;OK button
	Common_SleepInSeconds(1)
	ExitPageViewerByClickBackMenu($hPageViewer)	
	Common_SleepInSeconds(3)	
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hThumbnailView, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_36()
	Local $TestCaseID = '4.2.36'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Check the default setting on task pane.'
	Local $sStep3 = '3:'   &  '' 
	Local $sStep4 = '4:'   &  ''
	Local $sRes   = 'Res:' &  'The annotation display normally.Style:Line,Thinkness:1,color:red,Opacity:100%,Fill Color:blank,No Fill:check out(The image is "Text Box Properties" window)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sTextBoxPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_37()
	Local $TestCaseID = '4.2.37'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'NoFrame'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display NoFrame.(The image is text has no frame)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'NOBORDER') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "NoFrame"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_38()
	Local $TestCaseID = '4.2.38'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'Dot'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display Dot Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'Dot') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "Dot"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_39()
	Local $TestCaseID = '4.2.39'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'DotLine'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display DotLine Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'DotLine') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "DotLine"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_40()
	Local $TestCaseID = '4.2.40'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'Dash'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display Dash Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'Dash') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "Dash"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_41()
	Local $TestCaseID = '4.2.41'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'DotDash'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display DotDash Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'DotDash') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "DotDash"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_42()
	Local $TestCaseID = '4.2.42'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'ShortDot'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display ShortDot Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'ShortDot') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "ShortDot"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_43()
	Local $TestCaseID = '4.2.43'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'LongDot'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display LongDot Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'LongDot') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "LongDot"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_44()
	Local $TestCaseID = '4.2.44'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'ShortSquiggly'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display ShortSquiggly Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'ShortSquiggly') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "ShortSquiggly"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_45()
	Local $TestCaseID = '4.2.45'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change 'style' to 'LongSquiggly'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Textbox display LongSquiggly Frame.'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle($TestCaseID, $sLogFileName1, 'LongSquiggly') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Change "style" to "LongSquiggly"')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_46()
	Local $TestCaseID = '4.2.46'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 1 to 12")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness(13,$TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_47()
	Local $TestCaseID = '4.2.47'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness("aaa",$TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_48()
	Local $TestCaseID = '4.2.48'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Thickness display normally.(The image text box thickness is 6")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness(6,$TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('Thickness is 6')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_49()
	Local $TestCaseID = '4.2.49'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change the 'color'2"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The frame color is change to the correct color..(The image text box border color should green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('The text box border color should green')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_50()
	Local $TestCaseID = '4.2.50'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity(101, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_51()
	Local $TestCaseID = '4.2.51'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity('asd', $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_52()
	Local $TestCaseID = '4.2.52'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  'Click Ok button'
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity(50, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF('The Opacity is 50')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_53()
	Local $TestCaseID = '4.2.53'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Click 'Fill Color' options"
	Local $sStep4 = '4:'   &  'Choose any color,then click OK'
	Local $sRes   = 'Res:' &  'The Fill color is correct.(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SelectAnColorOfColorWndForPDFView($TestCaseID, $sLogFileName1, 'OK') Then Return False
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF("The text box color is blue")
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_54()
	Local $TestCaseID = '4.2.54'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  'Open text box properties dialog'
	Local $sStep3 = '3:'   &  "Click 'Fill Color' options"
	Local $sStep4 = '4:'   &  "Choose any color,check in 'No Fill',then select  the color ,click OK"
	Local $sRes   = 'Res:' &  'The selected color will be filled in(No text box color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextBoxPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SelectAnColorOfColorWndForPDFView($TestCaseID, $sLogFileName1, 'OK') Then Return False
	ClickNoFillInBtnInTextPropertiesWnd($sTextBoxPropertiesWnd)
	If Not ClickOKOrCancleBtnOnTextBoxPropertiesWnd($TestCaseID, $sLogFileName1, 'OK') Then Return False
	AddTextBoxForPDF("The text box color is blue")
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_58()
	Local $TestCaseID = '4.2.58'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Single click 'Textbox'  in pageview"
	Local $sStep3 = '3:'   &  "Drag the frame"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will enlarge and reducet,the content will not change.(The text box is enlarge)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextBoxForPDF("The text box is enlarge")
	
	;Enlarge text box
	MouseClick('left', 480, 314)
	Common_SleepInSeconds(0.2)
	MouseClickDrag('left',587, 412, 690,520)
	Common_SleepInSeconds(0.2)
	MouseClick('left', 803, 760)
	Common_SleepInSeconds(1)

	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_59()
	Local $TestCaseID = '4.2.59'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Single click 'Textbox'  in pageview"
	Local $sStep3 = '3:'   &  "Move the frame"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'TThe frame will move to the target,the content will not change.(The text box move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextBoxForPDF("The text box is enlarge")

	;Move text box
	MouseClick('left', 480, 314)
	Common_SleepInSeconds(0.2)
	MouseClickDrag('left',577, 401, 863, 856)
	Common_SleepInSeconds(0.2)
	MouseClick('left', 599, 277)
	Common_SleepInSeconds(1)

	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_60()
	Local $TestCaseID = '4.2.60'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextBoxForPDF("The text box is enlarge")
	RightClickAddedTextbox()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_61()
	Local $TestCaseID = '4.2.61'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextBoxForPDF("The text box is enlarge")
	RightClickAddedTextbox()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_62()
	Local $TestCaseID = '4.2.62'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select "Textbox" on Task Pane, add it to pageview.(PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image has no text box)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextBoxForPDF("The text box is enlarge")
	RightClickAddedTextbox()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_63()
	Local $TestCaseID = '4.2.63'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Style:Line,Thinkness:1,color:red,Opacity:100%,Fill Color:blank,End:Open,No Fill:check out"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sCalloutPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_64()
	Local $TestCaseID = '4.2.64'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'NoFrame'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'NoFrame', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('NoFrame')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_65()
	Local $TestCaseID = '4.2.65'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'Dot'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'Dot', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('Dot')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_66()
	Local $TestCaseID = '4.2.66'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'DotLine'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'DotLine', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('DotLine')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_67()
	Local $TestCaseID = '4.2.67'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'Dash'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'Dash', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('Dash')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_68()
	Local $TestCaseID = '4.2.68'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'DotDash'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'DotDash', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('DotDash')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_69()
	Local $TestCaseID = '4.2.69'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'ShortDot'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'ShortDot', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('ShortDot')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_70()
	Local $TestCaseID = '4.2.70'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'LongDot'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'LongDot', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('LongDot')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_71()
	Local $TestCaseID = '4.2.71'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'ShortSquiggly'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'ShortSquiggly', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('ShortSquiggly')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_72()
	Local $TestCaseID = '4.2.72'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change 'style' to 'LongSquiggly'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The Text Callout display NoFrame."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextLineStyle_Ex($TestCaseID, $sLogFileName1, 'LongSquiggly', $sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('LongSquiggly')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_73()
	Local $TestCaseID = '4.2.73'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Input -1 or 13 to 'Thickness'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "It will alert message(The image is pageviewer alert message 'value must is 1 to 12')"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(13, $TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_74()
	Local $TestCaseID = '4.2.74'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Thickness"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX('abc', $TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_75()
	Local $TestCaseID = '4.2.75'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change the 'Thickness'  to any numbner between 0 and 12"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image text box thickness is 6")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetThickness_EX(6, $TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('thickness is 6')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_76()
	Local $TestCaseID = '4.2.76'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change the 'color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image text box border color should green)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeTextBoxColor_EX($TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('color is green')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_77()
	Local $TestCaseID = '4.2.77'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_78()
	Local $TestCaseID = '4.2.78'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Other option"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_79()
	Local $TestCaseID = '4.2.79'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Other option"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('The Opacity is 50')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_80To89()
	For $i = 0 To 9
		Local $TestCaseID = '4.2.' & (80 + $i) 
		Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
		Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
		Local $sStep3 = '3:'   &  "'End' select " & $AVARROWS_END_STYLE[$i]
		Local $sStep4 = '4:'   &  "Click Other option"
		Local $sRes   = 'Res:' &  "The arrows display correct.('End' select is " & $AVARROWS_END_STYLE[$i] & ")"
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
		If Not SetArrowsEndStyle($TestCaseID, $sLogFileName1, $AVARROWS_END_STYLE[$i], $sCalloutPropertiesWnd) Then Return False	
		If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
		AddTextCalloutForPDF("Arrows End Style Is: " & $AVARROWS_END_STYLE[$i])
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_90()
	Local $TestCaseID = '4.2.90'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Click 'Fill Color' options"
	Local $sStep4 = '4:'   &  "Choose any color,then click OK"
	Local $sRes   = 'Res:' &  'The Fill color is correct.(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False	
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('The text box color is blue')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_91()
	Local $TestCaseID = '4.2.91'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Click 'Fill Color' options"
	Local $sStep4 = '4:'   &  "Choose any color,check in 'No Fill',then click OK"
	Local $sRes   = 'Res:' &  'No color fill in.(No text box color)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False	
	ClickNoFillInBtnInTextPropertiesWnd($sCalloutPropertiesWnd)
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('No text box color')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_92()
	Local $TestCaseID = '4.2.92'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Click 'Fill Color' options"
	Local $sStep4 = '4:'   &  "Choose any color,check in 'No Fill',then select  the color ,click OK"
	Local $sRes   = 'Res:' &  'The selected color will be filled in(The text box color is blue)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenTextCalloutPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False	
	ClickNoFillInBtnInTextPropertiesWnd($sCalloutPropertiesWnd)
	If Not ClickFillColorBtnInTextPropertiesWnd($TestCaseID, $sLogFileName1,$sCalloutPropertiesWnd)	Then Return False
	If Not SelectAnColorOfColorWndForPDFView_Ex($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False	
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sCalloutPropertiesWnd) Then Return False
	AddTextCalloutForPDF('The text box color is blue')
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_97()
	Local $TestCaseID = '4.2.97'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Open Text Callout' properties dialog"
	Local $sStep3 = '3:'   &  "Single click 'Text Callout' in pageview"
	Local $sStep4 = '4:'   &  "Move the frame"
	Local $sRes   = 'Res:' &  'The Text Callout will move,the content will not change.(The text box move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextCalloutForPDF('The text box move to right lower corner')
	
	;move text
	MouseClick('left',441, 273)
	Common_SleepInSeconds(0.3) 
	MouseClickDrag('left',490, 300, 800, 600)
	ClickSelectAnnotationButtonInPDFView()
	MouseClick('left',345, 213)	
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_98()
	Local $TestCaseID = '4.2.98'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim.(The text box move to right lower corner)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextCalloutForPDF("'Delete' are hight,others are dim")
	RightClickAddedTextCallout()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_99()
	Local $TestCaseID = '4.2.99'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextCalloutForPDF("'Delete' are hight,others are dim")
	RightClickAddedTextCallout()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_100()
	Local $TestCaseID = '4.2.100'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page ViewSelect "Text Callout" on Task Pane, add it to (PDF-Single page.pdf)'
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no Text Callout)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddTextCalloutForPDF("'Delete' are hight,others are dim")
	RightClickAddedTextCallout()
	SelectDeleteOptonOfPDFContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_101()
	Local $TestCaseID = '4.2.101'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Color:Yellow,Opacity:100%,Icon:Note(The image is Sticky Note Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenStickNotePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStickyNotePropertiesPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_102()
	Local $TestCaseID = '4.2.102'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Double click 'Sticky Note',the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the  'Color'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  "The stick note will change the correct color(The image is Sticky Note color is green)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenStickNotePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not  ChangeTextBoxColor_Ex($TestCaseID, $sLogFileName1, $sStickyNotePropertiesPropertiesWnd) Then Return False	
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStickyNotePropertiesPropertiesWnd) Then Return False	
	AddStickNoteForPDF()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_103()
	Local $TestCaseID = '4.2.103'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Double click 'Sticky Note',the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenStickNotePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStickyNotePropertiesPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStickyNotePropertiesPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_104()
	Local $TestCaseID = '4.2.104'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Double click 'Sticky Note',the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenStickNotePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStickyNotePropertiesPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStickyNotePropertiesPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_105()
	Local $TestCaseID = '4.2.105'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Double click 'Sticky Note',the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  "Click Ok button"
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	If Not ClickDownArrowBtnToOpenStickNotePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStickyNotePropertiesPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStickyNotePropertiesPropertiesWnd) Then Return False
	AddStickNoteForPDF()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_106To120()
	For $i = 0 To 14
		Local $TestCaseID = '4.2.' & (106 + $i) 
		Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
		Local $sStep2 = '2:'   &  "Double click 'Sticky Note',the properties dialog will pop"
		Local $sStep3 = '3:'   &  "'Icon' select " & $AVICON_STYLE[$i]
		Local $sStep4 = '4:'   &  "Click Ok button"
		Local $sRes   = 'Res:' &  'The Stick Note icon will change to the correct one.: ' & $AVICON_STYLE[$i]  
		$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
		Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
		Common_Del_DB()
		Common_InitializeStatus()
		InitializeStatusForPageViewer()
		If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
		FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
		If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
		If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
		SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
		If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
		If Not ClickDownArrowBtnToOpenStickNotePropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
		If Not SetIconStyle($TestCaseID, $sLogFileName1, $AVICON_STYLE[$i], $sStickyNotePropertiesPropertiesWnd) Then Return False
		If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStickyNotePropertiesPropertiesWnd) Then Return False
		AddStickNoteForPDF()
		Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
		If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
			Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
		Else
			Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
		EndIf
		Common_Close_PM($hPMHandle)	
	Next
EndFunc

Func PageViewer4_2_125()
	Local $TestCaseID = '4.2.125'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Single click 'Sticky Note' in pageview"
	Local $sStep3 = '3:'   &  "Move the frame"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The stick note will move,the content will not change.(The stick note will move to right lower conor)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStickNoteForPDF()

	;Move syick note
;	MouseClick('left',442, 277)
;	Common_SleepInSeconds(0.4)
	MouseClickDrag('left',442, 277,881, 876)
	Common_SleepInSeconds(0.5)
	ClickSelectAnnotationButtonInPDFView()
	MouseClick('left',432, 196)
	Common_SleepInSeconds(0.5)	
	
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_126()
	Local $TestCaseID = '4.2.126'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Single click 'Sticky Note' in pageview"
	Local $sStep3 = '3:'   &  "Right click this annotation"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStickNoteForPDF()
	RightClickAddedStickNote()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_127()
	Local $TestCaseID = '4.2.127'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Single click 'Sticky Note' in pageview"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStickNoteForPDF()
	RightClickAddedStickNote()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_128()
	Local $TestCaseID = '4.2.128'
	Local $sStep1 = '1:'   &  'Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select " Sticky '
	Local $sStep2 = '2:'   &  "Single click 'Sticky Note' in pageview"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation will delete.(The image has no annotataion)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStickNoteForPDF()
	RightClickAddedStickNote()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_129()
	Local $TestCaseID = '4.2.129'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Check the default setting."
	Local $sStep3 = '3:'   &  ""
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The annotation display normally.Opacity:100%(The image is Stamp Properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_130()
	Local $TestCaseID = '4.2.130'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input -1 or 101 to 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "value must is 0 to 100")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(101, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_131()
	Local $TestCaseID = '4.2.131'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Input other symble except of number in 'Opacity'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'It will alert message(The image is pageviewer alert message "Invalid numeric value")'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX('abc', $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(2)
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sPageViewerSaveAnnoTitle, $sPageViwerAlertMsg, $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_132()
	Local $TestCaseID = '4.2.132'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Change the 'Opacity'  to any numbner between 0% and 100%"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The Opacity display normally.(The Opacity is 50)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not SetOpacity_EX(50, $TestCaseID, $sLogFileName1,$sStampPropertiesWnd) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	Common_SleepInSeconds(0.2)
	MouseClick('left',756, 748)
	Common_SleepInSeconds(1)
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_133()
	Local $TestCaseID = '4.2.133'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'The default Author:username ,Subject:Draft,Content:Null(The image is Stamp Properties window General tab)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_134()
	Local $TestCaseID = '4.2.134'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Double click this stamp,the properties dialog will pop"
	Local $sStep3 = '3:'   &  "Click 'General tab'"
	Local $sStep4 = '4:'   &  "Check Author,Subject,Content"
	Local $sRes   = 'Res:' &  'Change the Author,Subject and Content then save.Close properties dialog  then check it again.(The image is Stamp Properties window General tab, the content is changed)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not ChangeGernalTabContent($sStampPropertiesWnd, $TestCaseID, $sLogFileName1) Then Return False
	If Not ClickOKOrCancleBtnOnTextPropertiesWnd($TestCaseID, $sLogFileName1, 'OK', $sStampPropertiesWnd) Then Return False
	MouseClick('left',756, 748)
	Common_SleepInSeconds(0.5)
	If Not DoubleClickAddedStampOnPDFToOpenStampPropertiesWnd($TestCaseID, $sLogFileName1) Then Return False
	If Not ClickTabInWindow($sStampPropertiesWnd, 1, $iTAB_CTRL_INFO, $TestCaseID, $sLogFileName1) Then Return False
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sStampPropertiesWnd, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_136()
	Local $TestCaseID = '4.2.136'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Single click this stamp"
	Local $sStep3 = '3:'   &  "Move it"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  'The frame will move to the target,the content will not change.(The stamp move to right lower corner)'
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	
	;Move stamp
	MouseClickDrag('left',420, 281,860, 859)
	Common_SleepInSeconds(0.3)
	MouseClick('left',400, 261)
	Common_SleepInSeconds(0.5)
	
	 Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_137()
	Local $TestCaseID = '4.2.137'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click Right contenet menu"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "'Properties' and 'Delete' are hight,others are dim."
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	RightClickAddedStamp()
	Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_138()
	Local $TestCaseID = '4.2.138'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Properties'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &   "The properties will launch.(The image is properties window)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	RightClickAddedStamp()
	OpenProperteisWndPDFViewContextMenu()
	If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $sFilePropertiesWndTitle, '', $TestCaseID, $sLogFileName1) Then Return False
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc

Func PageViewer4_2_139()
	Local $TestCaseID = '4.2.139'
	Local $sStep1 = '1:'   &  "Launch PageManager,Choose PDF folder,Select the PDF,switch to Page View,Select ' Stamp' on Task Pane,select 'Draft',then"
	Local $sStep2 = '2:'   &  "Right click this annotation"
	Local $sStep3 = '3:'   &  "Click 'Delete'"
	Local $sStep4 = '4:'   &  ""
	Local $sRes   = 'Res:' &  "The properties will launch.(The image has no smtap)"
	$sFailLogMsg = Common_ExecuteStep_EX($sStep1, $sStep2, $sStep3, $sStep4, $sRes)
	Local $sCaptureImage = $TestCaseID & '.jpg', $hThumbnailView = '', $hPMHandle = '', $hPageViewer = ''
	Common_Del_DB()
	Common_InitializeStatus()
	InitializeStatusForPageViewer()
	If Assign('hPMHandle', Common_Run_PageManager_Ex($TestCaseID, $sLogFileName1)) And $hPMHandle == '' Then Return False
	FileCopy($sSampleFolderPath & 'PDF-Single page.pdf', $sFunctionFolderPath, 1)
	If Not Common_SwitchToFunctionFolder($hPMHandle, $sFolderName, $TestCaseID, $sLogFileName1)	Then Return False
	If Assign('hThumbnailView', Common_GetThumbinalHdanle($hPMHandle, $TestCaseID, $sLogFileName1)) And $hThumbnailView == '' Then Return False
	SelectFileInThumnailThenSwitchToPageviewer($hThumbnailView, 0, $hPMHandle)
	If Assign('hPageViewer', IsPageViewerWindowExist($TestCaseID, $sLogFileName1)) And $hPageViewer == '' Then Return False
	AddStampOnPDF('Draft')
	RightClickAddedStamp()
	SelectDeleteOptonOfPDFContextMenu()
	Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
	If Common_CompareFile($sPerformResultPath & $sCaptureImage, $sCorrectResultPath & $sCaptureImage) Then
		Common_WriteLog($sPass, $TestCaseID, $sLogFileName1, '')
	Else
		Common_WriteLog($sFaile & $CompareScreenCapture & $sFailLogMsg, $TestCaseID, $sLogFileName1,'')
	EndIf
	Common_Close_PM($hPMHandle)	
EndFunc
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage, $hViewinPageView, '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScrrenCaptureInPageViewer($sPerformResultPath & $sCaptureImage)
;  ScreenCapturePageViwerAnnotationBar($sPerformResultPath & $sCaptureImage)
;  If Not Common_ScreenCaprureWindow_Ex($sPerformResultPath, $sCaptureImage,  ControlGetHandle($hPageViewer, '', $sPageViewerToolBar), '', $TestCaseID, $sLogFileName1) Then Return False
;  Common_ScreenCaprureWindow($sPerformResultPath, $sCaptureImage, $sMenuClass)